package com.cloud.logger.zchain.zchainserver.entity.po;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

/**
 * User: zhengyt
 * Date: 2017/12/27
 * Time: 11:28
 */
@Data
public class ZchainUserPo {

    @JsonProperty("user_name")
    @JSONField(name = "user_name")
    @ApiModelProperty(name = "user_name", notes = "用户名", example = "zs")
    @NotBlank(message ="userName字段不能为空")
    private String userName;

    @JsonProperty("password")
    @JSONField(name = "password")
    @ApiModelProperty(name = "password", notes = "用户密码", example = "zs")
    @NotBlank(message ="password字段不能为空")
    private String password;

}
